<?php

header("Content-Type: text/html; charset=gb2312");
require_once(dirname(__FILE__).'/../lang/core.php');
require_once(dirname(__FILE__).'/../util/jsonX.php');
require_once(dirname(__FILE__).'/CmsImp_4Imovie.php');
 CmsImpLocalFileVer::$maindir="d:/z";
		$cmsx = new CmsImp_4Imovie();
		 $cmsx->envi="bs";
 function a(){
		CmsImpLocalFileVer::$maindir="d:/z";
		$cmsx = new CmsImp_4Imovie();
		print_r($cmsx);
		//$cmsx-> $recordDir="aa";
	//	echo ($cmsx->$envi);
		 $cmsx->envi="bs";
		 echo $cmsx->tt();
    	$list = $cmsx->query_post("");
	/*
		$newMap = MapX.newMap();
		newMap.put("cate", 1);
		$list = $cmsx.get_posts(  newMap);
		
		*/
		
		print_r($GLOBALS);
		echo "<p><p>----------------";
		$a=$list->toPhpArr();
		$s=ch_json_encode($a);
		echo($s);
		echo("--fk2k");
 }
    function get_post($id)
	{
			$list = $cmsx->query_post("");
			$a=$list->toPhpArr();
		$s=ch_json_encode($a);
		return  $s;
	}
		
		
 